package com.pan.kang.controller;

import com.pan.kang.model.vo.AccComprehensiveQueryConditionVO;
import com.pan.kang.model.vo.AccComprehensiveQueryResultVO;
import com.pan.kang.model.vo.BaseResponseVO;
import com.pan.kang.service.IAccComprehensiveQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/member/gris/mapp/account/query/accComprehensiveQuery"})
public class AccComprehensiveQueryController {
    @Autowired
    private IAccComprehensiveQueryService accComprehensiveQueryService;

    public AccComprehensiveQueryController() {
    }

    @PostMapping({"findList"})
    public BaseResponseVO<AccComprehensiveQueryResultVO> findList(@RequestBody(required = false)
                                                                  AccComprehensiveQueryConditionVO conditionVO) {
        conditionVO.setKmWdQuery(false);
        return BaseResponseVO.of(this.accComprehensiveQueryService.findList(conditionVO));
    }
}

